﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _34继承的练习
{
    class Program
    {
        static void Main(string[] args)
        {
            LaoS l = new LaoS();
            l.Name = "张三";
            l.Age = 18;
            l.Sex = RenSex.男;
            l.Sat();
            l.Cat();
            l.Yat();
            Console.WriteLine(":)");
            XueSen x = new XueSen();
            x.Name = "某老师";
            x.Age = 34;
            x.Sex = RenSex.女;
            x.Sat();
            x.Cat();
            x.Yat();

            Console.ReadKey();
        }
    }
}
